package com.accp.vehiclecare.action.lscaction;


import com.accp.vehiclecare.biz.lscbiz.LscsettleBiz;
import com.accp.vehiclecare.pojo.Settle;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
@RequestMapping("/c/lscsett")
public class LscsettleAction {
    @Autowired
    private LscsettleBiz biz;

    @PostMapping("add")
    public int addone(@RequestBody  Settle s){
        s.setSettletime(new Date());
        return biz.addone(s);
    }
}
